package cn.stronglink.asset.module.assetmanage.scrap.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.plugins.pagination.Pagination;

import cn.stronglink.asset.model.Scrap;
import cn.stronglink.asset.model.ScrapDetail;
import cn.stronglink.asset.module.assetmanage.itasset.vo.ItAssetVo;

public interface ScrapMapper {
	
	public List<ScrapDetail> queryScrapDetailList(@Param("scrapId")Long id);

	public List<ScrapDetail> queryScrapDetailByParentId(@Param("scrapId") Long scrapId);
	
	public List<Scrap> queryScrapList(Pagination page,@Param("params")Map<String, Object> params);
	
	public Scrap queryScrapById(@Param("id") Long id);
	
	public void remove(Long id);
	
	public void removeDetail(Long id);

	public void insertScrapDetail(ScrapDetail detail);

	public void updateScrapDetail(ScrapDetail detail);
	
	public void updateScrap(Scrap Scrap);

	public int insertScrap(Scrap Scrap);

	public ScrapDetail qryById(@Param("id") Long id);

	public int distribution(ScrapDetail detail);

	public int qryScrapCount();

	public List<ItAssetVo> querAssetListByParam(Pagination page,@Param("params") Map<String, Object> params);
}
